
import { type RouteRecordRaw } from 'vue-router';

export const LayoutsRouter: RouteRecordRaw[] = [
    {
        //导航页
        path: '/layout',
        name: 'layout',
        meta: {
            title: '首页',
            requiresAuth: true
        },
        component: () => import('@/layout/index.vue'),
        children: [
            {
                //欢迎页
                path: '/layout',
                name: 'welcome',
                meta: {
                    title: '首页',
                    requiresAuth: true,
                    icon:'appstore-filled',
                },
                component: () => import('@/views/pages/dashboard/index.vue'),
                children:[]
            },
            {
                //用户
                path: '/userconfig',
                name: 'user',
                meta: {
                    title: '用户管理',
                    requiresAuth: true,
                    icon:'user-outlined',
                },
                // component: () => import('@/views/pages/user/index.vue'),
                children:[
                    {
                        path: '/userconfig',
                        name: 'userconfig',
                        meta: {
                            title: '用户配置',
                            requiresAuth: true,
                            // icon:'user-outlined',
                        },
                        component: () => import('@/views/pages/user/index.vue'),
                    },
                ]
            },
        ]
    },
]
